package com.upcode.weighing.domain;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 内容表
 * </p>
 *
 * @author liqi
 * @since 2018-11-15
 */
@TableName("etc_announcement")
public class EtcAnnouncement implements Serializable {

    private static final long serialVersionUID = 1L;

	@JsonSerialize(using=ToStringSerializer.class)
	@Id
	private Long id;
    /**
     * 类型 1：公告 2：政策优惠 3：限时特惠
     */
	private Integer type;
    /**
     * 标题
     */
	private String title;
    /**
     * 内容
     */
	@TableField(value="content",strategy = FieldStrategy.IGNORED)
	private String content;
    /**
     * 图片id
     */
	@TableField("file_id")
	private String fileId;
    /**
     * 作者
     */
	private String author;
    /**
     * 创建时间
     */
	@TableField("ins_time")
	private Date insTime;
    /**
     * 修改时间
     */
	@TableField("chg_time")
	private Date chgTime;
    /**
     * 是否首页显示 1：不显示 2：显示
     */
	@TableField("is_index")
	private Integer isIndex;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 最后修改人
     */
	@TableField("last_user")
	private String lastUser;

	private Integer status;

	@TableField(value="jump_link",strategy = FieldStrategy.IGNORED)
	private String jumpLink;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Date getInsTime() {
		return insTime;
	}

	public void setInsTime(Date insTime) {
		this.insTime = insTime;
	}

	public Date getChgTime() {
		return chgTime;
	}

	public void setChgTime(Date chgTime) {
		this.chgTime = chgTime;
	}

	public Integer getIsIndex() {
		return isIndex;
	}

	public void setIsIndex(Integer isIndex) {
		this.isIndex = isIndex;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getLastUser() {
		return lastUser;
	}

	public void setLastUser(String lastUser) {
		this.lastUser = lastUser;
	}

	@Override
	public String toString() {
		return "EtcAnnouncement{" +
			", id=" + id +
			", type=" + type +
			", title=" + title +
			", content=" + content +
			", fileId=" + fileId +
			", author=" + author +
			", insTime=" + insTime +
			", chgTime=" + chgTime +
			", isIndex=" + isIndex +
			", sort=" + sort +
			", lastUser=" + lastUser +
			", jumpLink=" + jumpLink +
			"}";
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getJumpLink() {
		return jumpLink;
	}

	public void setJumpLink(String jumpLink) {
		this.jumpLink = jumpLink;
	}
}
